<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Week2M extends Model
{
    //
    public static function Adds($request)
    {
        $res['name'] = $request['name'];
        $res['pwd'] = $request['pwd'];
        $res['email'] = $request['email'];
        $res['tel'] = $request['tel'];
        $res['Address'] = $request['Address'];
        $res['photos'] = $request->file('photos')->store('uplode');

        $res = Db::table("week2")->insert( $res );

    }
}
